<?php declare(strict_types=1);

$di = \application\units\Di::getInstance();
$rules = $di->auth->getResource($di->auth->id);

return [
    'auth'  => $di->auth->getData(),
    'rules' => $rules,
];